package com.diver.flinkdemo.entity.xxt;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.*;
import lombok.experimental.Accessors;
import org.jeecgframework.poi.excel.annotation.Excel;

import java.util.Date;

/**
 * 电子围栏
 */
@Builder
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName("fence")
@Accessors(chain = true)
@EqualsAndHashCode(callSuper = false)
@ApiModel(value = "fence对象", description = "电子围栏表")
public class Fence implements java.io.Serializable {

    // 序列化版本
    private static final long serialVersionUID = -9109654528605590528L;

    // 唯一主键 [主键]
    @TableId(type = IdType.UUID)
    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "人员Id")
    private String personId;

    @ApiModelProperty(value = "围栏类型 1：学校设置围栏 2：学生个性化围栏")
    private String fenceCategory;

    //围栏名称
    @ApiModelProperty(value = "围栏名称")
    private String fenceName;

    //围栏类型 0：圆形 1:多边形
//    @Dict(dicCode = "fence_type")
    @ApiModelProperty(value = "围栏类型 0：圆形 1:多边形")
    private String fenceType;

    //围栏标签
//    @Dict(dicCode = "fence_label")
    @ApiModelProperty(value = "围栏标签")
    private String fenceLabel;

    //围栏地址
    @ApiModelProperty(value = "围栏地址")
    private String address;

    //圆心纬度
    @ApiModelProperty(value = "圆心纬度")
    private String circleLat;

    //圆心经度
    @ApiModelProperty(value = "圆心经度")
    private String circleLon;

    //圆形半径
    @ApiModelProperty(value = "圆形半径")
    private Integer circleRadius;

    //多边形经纬度坐标列表
    @ApiModelProperty(value = "多边形经纬度坐标列表")
    private String polygonList;

    //wifi列表
    @ApiModelProperty(value = "wifi列表")
    private String wifiList;

    @ApiModelProperty(value = "关联机构数")
    private Integer departCount;

    /**
     * 租户ID
     */
    @Excel(name = "租户ID", width = 15)
    @ApiModelProperty(value = "租户ID")
    private Integer tenantId;
    /**
     * 备注
     */
    @Excel(name = "备注", width = 15)
    @ApiModelProperty(value = "备注")
    private String memo;
    /**
     * 状态（1启用，0不启用）
     */
    @Excel(name = "状态（1启用，0不启用）", width = 15)
    @ApiModelProperty(value = "状态（1启用，0不启用）")
    private String status;
    /**
     * 删除状态（0，正常，1已删除）
     */
    @Excel(name = "删除状态（0，正常，1已删除）", width = 15)
    @ApiModelProperty(value = "删除状态（0，正常，1已删除）")
    private String delFlag;
    /**
     * 创建人
     */
    @ApiModelProperty(value = "创建人")
    private String createBy;
    /**
     * 创建日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "创建日期")
    private Date createTime;
    /**
     * 更新人
     */
    @ApiModelProperty(value = "更新人")
    private String updateBy;
    /**
     * 更新日期
     */
    @JsonFormat(timezone = "GMT+8", pattern = "yyyy-MM-dd HH:mm:ss")
    @ApiModelProperty(value = "更新日期")
    private Date updateTime;

}
